﻿using DevExpress.XtraEditors;
using DevExpress.XtraReports.UI;
using DevTeam;
using System;
using System.Windows.Forms;

namespace ConfExpert.Forms.Depo.Cikis
{
    public partial class ParcaCikisEtiketiBas : XPopupForm
    {
        public ParcaCikisEtiketiBas(string idxs)
        {
            InitializeComponent();
            Idxs = idxs;
        }
        string Idxs;

        private void KartelaEtiketi_Load(object sender, EventArgs e)
        {

        }

        private void btnPreview_Click(object sender, EventArgs e)
        {
            int bosEtiket = txtEmptyLabel.Text.ToInt();
            //int kumasAdet = txtKumasAdet.Text.ToInt();
            if (bosEtiket > 9)
            {
                XtraMessageBox.Show("Bir sayfada 9'dan fazla boş etiket olamaz!", "Critical");
                return;
            }
            ParcaCikisEtiketi numune = new ParcaCikisEtiketi(Idxs, bosEtiket);
            numune.ShowPreview();
            this.DialogResult = DialogResult.OK;
        }
    }
}